import { request } from '../utils/request'
export const postLoginAPI = (data) => {
  return request({
    method: 'POST',
    url: `/login`,
    data,
  })
}
export const getMemberAPI = () => {
  return request({
    method: 'GET',
    url: `/member/profile`,
  })
}
export const putMemberAPI = (data) => {
  return request({
    method: 'PUT',
    url: `/member/profile`,
    data,
  })
}
export const postMemberAPI = (file) => {
  return request({
    method: 'PUT',
    url: `/member/profile/avatar`,
    file,
  })
}
